//
//  NetTableViewCell.m
//  又是豆瓣
//
//  Created by dllo on 16/1/4.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "NetTableViewCell.h"

@implementation NetTableViewCell


#define WI self.contentView.frame.size.width
#define HE self.contentView.frame.size.height

- (void)dealloc {
    [super dealloc];
    [_imageV1 release];

    [_title1 release];
    
    [_imageV2 release];
    
    [_title2 release];
    
    [_imageV3 release];
    
    [_title3 release];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }
    
    return self;
}

- (void)createCell {
    

    
    self.imageV1 = [[UIImageView alloc]init];
    [self.contentView addSubview:_imageV1];
    [_imageV1 release];
    
    self.title1 = [[UILabel alloc]init];
    [self.contentView addSubview:_title1];
    [_title1 release];
    
    
    
    self.imageV2 = [[UIImageView alloc]init];
    [self.contentView addSubview:_imageV2];
    [_imageV2 release];
    
    self.title2 = [[UILabel alloc]init];
    [self.contentView addSubview:_title2];
    [_title2 release];
    
    
    self.imageV3 = [[UIImageView alloc]init];
    [self.contentView addSubview:_imageV3];
    [_imageV3 release];
    
    self.title3 = [[UILabel alloc]init];
    [self.contentView addSubview:_title3];
    [_title3 release];
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    
    _imageV1.frame = CGRectMake(18, 10, 100, 140);
    
    _title1.frame = CGRectMake(18, 155, 100, 30);
    
    
    _imageV2.frame = CGRectMake(136, 10, 100, 140);
    
    _title2.frame = CGRectMake(136, 155, 100, 30);
    
    _imageV3.frame = CGRectMake(254, 10, 100, 140);
    
    _title3.frame = CGRectMake(254, 155, 100, 30);
    
    
}





- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
